let mongoose=require('../db/lian')

const dynaSchema = mongoose.Schema({
    title:String,
    image:Array,
    date:{
        type:Date,
        default:Date.now
    }
})
const dynaModel = mongoose.model('dynaSchema',dynaSchema,'dynaSchema')

// dynaModel.create({
//     title:"前几天因为天气影响没怎跑步，今天浅尝一下15公里，顺便发几张两边随手拍的小花花~",
//     image:[
//     'https://i0.imgs.ovh/2024/03/07/QUCbl.md.webp',
//     'https://i0.imgs.ovh/2024/03/07/Qzylu.webp',
//     'https://i0.imgs.ovh/2024/03/07/QzNQp.md.webp',
//     'https://i0.imgs.ovh/2024/03/07/QzG3R.md.webp',
//     'https://i0.imgs.ovh/2024/03/07/QzqaN.md.webp',
//     'https://i0.imgs.ovh/2024/03/07/QzT1m.md.webp'
// ]
// })

module.exports={dynaModel}